<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>天天互保-活动详情</title>
<meta name="format-detection" content="telephone=no" />
<meta name="keywords" content="天天互保"> 
<meta name="description" content="天天互保"> 
<meta content="width=device-width, initial-scale=1.0,minimum-scale=1.0, maximum-scale=1.0,user-scalable=no" name="viewport">
<link rel="stylesheet" href="__CSS__/style.css">
<link rel="stylesheet" href="__CSS__/index.css">
<link rel="stylesheet" href="__CSS__/type_info.css">
<!-- banner -->
<script src="__JS__/jquery.min.js"></script>
</head>
<body>
<div>
	<img src="__ROOT__/{$baodan['src']}">
</div>

<!--  列表-->
<!-- <div class="gongshitable">
	<div class="gs_line font12"><p>姓名</p><span>某某某</span></div>
	<div class="gs_line font12"><p>身份证</p><span>13134442245335535</span></div>
	<div class="gs_line font12"><p>保障状态</p><span>距离等待期结束还有178天</span></div>
	<div class="gs_line font12"><p>加入时间</p><span>2015-05-09</span></div>
	<div class="gs_line font12"><p>截止时间</p><span>2015-05-09</span></div>
	<div class="gs_line font12 no_bbottom" onclick="window.location.href='application_details.html'"><p>申请详情</p><span>&gt;&gt;</span></div>
</div>
<div class="addhubao"><a class="submits" href="./addwelfare.html">申请保障金</a></div> -->


<!--  列表-->
<div class="gongshitable">
	<div class="gs_line font12"><p>姓名</p><span>{$baodan.username}</span></div>
	<div class="gs_line font12"><p>身份证</p><span>{$baodan.userid}</span></div>
	<div class="gs_line font12"><p>保障状态</p><span>
<?php 
 $baodan['usetime'];
  $wait=$baodan["waitdate"];
  $end=strtotime($baodan['usetime'])-time();
  if($end>0){
  $now=$end/86400;
  echo "距离等待期结束还有".floor($now)."天";
  }else{
  echo "早就失效了";
  }
?>
	</span>
	</div>
	<div class="gs_line font12"><p>加入时间</p><span>{$baodan.create_time}</span></div>
	<div class="gs_line font12"><p>互保单余额</p><span>{$baodan.yufujin}</span></div>
</div>
<!--没有申请记录时打开空白页，页面文字或图片提示还没有申请记录-->
<!--<div class="gs_tishi nonelist font12"><p style="text-align:center;">暂无申请记录。</p></div>-->
	<if condition="$tiao.id eq '' ">
		<if condition="$dengdai eq 1 ">
		<div class="addhubao"><a class="submits" href="__URL__/addwelfare/gid/{$baodan.hbid}">申请保障金</a></div>
		<else /> 
		<div class="addhubao"><a class="submits" style="background-color: grey" >申请保障金</a></div>
		</if>
    <else /> 
    <div class="shenqingline martop10" onclick="window.location.href='application_details.html'" style="width:90%;margin-left:4.5%;margin-right:4.5%;">
	<p>申请详情</p><img src="__IMG__/more4.png" class="publicityico">
	</div>
    </if>


<!--<div class="addhubao"><a class="submits state3" href="#">已申请</a></div>-->


<div class="guize font12 guize1">
	{$baodan.guize}
</div>

<!--红包-->
<div class="hongbao"><a href="#"><img src="__IMG__/hb.png" alt="红包"/></a></div>


<script>
function showinfo(i){
	$('#pop'+i).show().on('click', '.pop_button a', function () {
			$('#pop'+i).off('click').hide();
	});
}
$(document).ready(function(){
	$('.menu_li').on('click',function(){
		$('.menu_liinfo').fadeIn(1000).css('display','block');
	})
})
</script>
</body>
</html>